const pubUrl = "https://www.fastmock.site/mock/6db463daa51e9e80be6f1f2f7611e84b/community"//这是我要请求的数据接口的公共部分
const http = (options: any) => {
  return new Promise((resolve, reject) => {
    wx.request({
      url: pubUrl + options.url,
      method: options.method || 'get',
      data: options.data || {},
      header: options.header || {
        'content-type': 'application/x-www-form-urlencoded'
      },
      success: resolve,
      fail: reject
    })
  })
}
export default http
